//A class that gets errors, used in SystemException

public class SystemErrors {
	public static int EMPLOYEE_INVALID_ID = 1;
	public static int EMPLOYEE_DATA_LACK = 2;
	public static int DEPARTMENT_HAS_HEAD = 3;
	public static int DEPARTMENT_NOT_EMPTY = 4;
	public static int UNDEFINED_PAYLEVEL = 5;
	public static int DATA_IS_BLANK = 6;
	public static int IS_DEPARTMENT_HEAD = 7;
	public static int CANT_MOVE_HEAD = 8;
	
	public static String getError(int error){
		String msg = "";
		switch (error){
			case 1:
				msg = "Employee ID is invalid! ";
				break;
			case 2:
				msg = "Lack of data to create a new employee! ";
				break;
			case 3:
				msg = "Can't assign as head! ";
				break;
			case 4:
				msg = "Can't delete this department (department is not empty)! ";
				break;
			case 5:
				msg = "Undefined pay level. Valid values: 1-8 (in startup.txt)! ";
				break;
			case 6:
				msg = "Missing data or data is blank or invalid data (in startup.txt)! ";
				break;
			case 7:
				msg = "Employee is a head of department! ";
				break;
			case 8:
				msg = "Can't switch employee to the new department! ";
				break;
		}
		return msg;
	}
}
